home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / User Interface / CNumbersOnly / Read Me < prev   
Encoding:
Text File  |  1999-02-17  |  2.4 KB  |  58 lines

  1. CNumbersOnly
  2. by Olivier Robert ©1998
  3. Version 1.1
  4. 02/17/98
  5.  
  6.  
  7. What is it?
  8. CNumbersOnly is a custom class of the EditField class that lets you only enter numbers in that editfield. The tab, return,enter and back delete key are working as usual. Separators may be used as well.
  9.  
  10. What’s new?
  11. CNumbersOnly now accepts number separators: dot and comma.
  12.  
  13. How to use it?
  14. Drag an EditField object to your window, then choose “CNumbersOnly” in the Super PopUp from the “Porperties” window or just drag the CNumbersOnly Class from your project window to your window. That’s it!
  15.  
  16. If the name of the EditField is “EditField1” then all commands are entered in the Open event of the EditField
  17.  
  18. Set the separator to a comma:
  19.  
  20.                     me.SeparatorIsComma = true
  21.                   
  22. Set the separator to a dot:
  23.  
  24.                     me.SeparatorIsDot = true
  25.  
  26. If you need more informations, check out the demo project to see how it works.
  27. NB: Of course you could set both separator to true if you want to use both!
  28.  
  29. Thanks:
  30. Thanks to Tiago Ribeiro who had the idea to enhance CNumbersOnly so that it accepts a comma or a dot separator for sending his code to me. I only did a very smal modification so that the class is easier to use: the user can choose if he wants to use a separator or not and which one he wants.
  31.  
  32. Who made it?
  33.  
  34.  
  35.  
  36.  
  37.  
  38. MacManiac Software
  39. Olivier Robert
  40. 5, Impasse des Colibris
  41. F-57150 France
  42.  
  43. Site: http://MacManiacSW.idmac.com/
  44. Email: MacManiac-Software@kagi.com
  45.  
  46. Legal blabla:
  47. CNumbersOnly is free. You can use it in personnal projects, shareware, freeware, commercial products, ... You can even modify it, but don’t distribute a modified CNumbersOnly Class!!!
  48. If you use it,  you have to mention me in the documentation or splash screen or about box or in a “Special Thanks” text like this: the class name, my name and my email (optional).
  49. For example:
  50. CNumbersOnly by Olivier Robert[, olivier.robert@capway.com]
  51. (or)
  52. CNumbersOnly  ©1998-99 by Olivier Robert[, olivier.robert@capway.com]
  53. (or)
  54. Thanks to Olivier Robert[, olivier.robert@capway.com] for his CNumbersOnly ©1998-99
  55.  
  56. This software may be distributed freely as long as the demo program and this readme remain unchanged with the class. This software may not be included in any software compilation CD's without the prior permission of the author.
  57.  
  58. N.B. I would really appreciate getting a fee copy of the application using this class, but that's not a demand. At least, send me an email if you use it ;-)